Electrical circuits for power factor correction by measurement and removal of overtones and power factor maximization

ABSTRACT

Provided are electrical circuits and methods for power factor correction. An example method includes receiving, by converter, an input voltage at a fundamental frequency and generating an output voltage; generating, based on the output voltage, a first measurement signal; subtracting a first reference signal from the first measurement signal to obtain a first error signal; generating an adaptive current sense signal, generating a reference voltage based on the input voltage, subtracting the reference voltage from the current sense signal thus generating a second measurement signal to control the current measurement; subtracting the second measurement signal from the input voltage to obtain a difference signal, wherein the difference signal is largely minimized by removing overtones of the fundamental frequency; generating, based on the difference signal, a second error signal; using a sum of the second error signal as a first order correction to the first error signal to regulate the converter.

CROSS REFERENCE TO RELATED APPLICATIONS

This patent application is a continuation-in-part of U.S. patent application Ser. No. 17/237,973, filed Apr. 22, 2021, which is a continuation of U.S. patent application Ser. No. 17/102,035, filed Nov. 23, 2020, now U.S. Pat. No. 10,998,815, issued May 4, 2021. All of the aforementioned disclosures are hereby incorporated by reference herein in their entireties of all purposes including all references cited therein.

FIELD

The present application relates generally to electrical circuits, and more specifically, to electrical circuits and methods for power factor correction by measurement and removal of overtones.

BACKGROUND

Generators and transformers and electrical loads are connected together in power distribution systems that utilize alternating current (AC) power. The generators and transformers generally are designed in such a manner that a current waveform of any load should be sinusoidal and of the same shape and phase as the input power voltage supplied by the generators and transformers. In the power distribution systems, where the load current is sinusoidal and in-phase with the input power voltage, the power factor is one. Poorly conditioned loads have power factors less than 1.

Deviations of the current waveform of the load from the sinusoidal shape and phase shifts reduce the power factor and may cause losses in the power distribution systems. These losses may appear as reactive voltages and currents and harmonic generation and result in increased power dissipation in the generators, transformers, and so forth. The increased power dissipation causes reduction in power efficiency and waste of energy and other problems in the power grid. Therefore, there is a need for removal of the deviations of the waveform of the load current from the sinusoidal shape, which appear as overtones of the fundamental frequency of the input power voltage, in order to correct and improve the power factor of the load. Phase errors also need to be removed.

Existing solutions for the removal of the deviations typically involve a high-speed current sense loop which operates in a nanosecond time frame and a high-speed current sense. As the output demand or input voltage for a load current is reduced, which happens during each cycle in the AC input, the frequency of operation of the current sense loop needs to increase. However, the frequency is difficult to increase when sensing the current of light loads. Furthermore, use of high-speed current sense loop is power inefficient because switching losses increase for lower power demands. Additionally, many of the existing solutions require a multiplier circuit which multiplies the feedback value with the measured rectified AC signal. Using the multiplier circuit results in increases of the circuit complexity. Another disadvantage of these types of circuits is that they do not operate at a constant frequency. This makes it difficult to filter switching noise and electromagnetic inference (EMI). In various embodiments, the technique as described herein, to reduce input harmonic noise from current from an AC source, may be used to remove harmonic noise when current is driven into an AC source. The direction of the current flow may change but the method of harmonic and noise detection and removal remain the same as is described. The same benefits accrue to the usage of this circuit, i.e. reduction of power loss, reduction of switching noise, and the possibility of simplifying the circuitry. This allows the circuit to supply current from a DC source to a low impedance AC power grid with high efficiency.

SUMMARY

This summary is provided to introduce selected concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it necessarily intended to be used as an aid in determining the scope of the claimed subject matter.

According to an example embodiment of the present disclosure, an electrical circuit for power factor correction is provided. The electrical circuit may include a converter using switches and inductors to generate a regulated output. The converter can be configured to receive an input power signal having an input voltage, at a fundamental frequency and generate an output power signal having a regulated direct current output voltage. The converter is regulated by a first control signal. The electrical circuit may include a reference voltage source configured to provide a reference. The electrical circuit may include a first measuring circuitry configured to generate, based on the output voltage, a first measurement signal. The electrical circuit may include a first operational circuitry configured to subtract the first reference signal from the first measurement signal, called the first difference, to obtain a first error signal.

The electrical circuit may include an adaptive current sensing circuitry. The current sense signal is responsive to the input current and to a second control signal.

The electrical circuit may include a second reference circuitry configured to generate, based on the input voltage, a second reference signal. The second measurement signal may include a sinusoidal or rectified sinusoidal signal. This second measurement signal may have a slowly varying fundamental frequency, the variation of which is much slower than the fundamental frequency. The electrical circuit may include a second operational circuitry configured to subtract the second reference signal from the current sense signal, called the second difference, to obtain the second control signal by means of a second operational circuit. This control signal has a bandwidth considerably smaller than the frequency of the input power supply. The second difference can be minimized by controlling a response of the adaptive sensing circuitry using the second control signal such that the difference signal includes largely only overtones of the fundamental frequency and largely lack a signal corresponding to the fundamental frequency. A third operational circuit can generate, based on the second difference, a second error signal. This second error signal has a bandwidth much wider than the frequency of the input to the power supply and substantially wider the first error signal. The electrical circuit can include a summing circuitry configured to add the second error signal and the first error signal to obtain a first control signal, and provide the first control signal to control the switches of the converter. The first control signal can be used to regulate the output of the converter and to increase the power factor, simultaneously.

The converter may include an inductor, a switch, a diode and a gate driver and control. The switch can be configured to regulate the current in the inductor. In other embodiments, the converter may include one or more transformers, switches, diodes, capacitors, gate drivers and control circuitry with the switches being configured to regulate currents in transformers or inductors, and capacitors.

The bandwidth of the first error signal can be less than the bandwidth of the second error signal. The adaptive current sensing circuitry may include a voltage variable resistor. The current measurement circuitry in other embodiments may include a resistor, a digitally controlled resistor, a Metal Oxide Silicon Field Effect Transistor (MOSFET), a junction gated field-effect transistor (JFET), or current transformer.

The second error signal may be treated as a first order perturbation on the first error signal. The first error signal ought to be able to dominate the control loop.

In this embodiment a switch can be controlled by a pulse width modulator. The output of the switch can be controlled by regulating a duty cycle of the pulse width modulator without changing the frequency of turning the switch on and off.

In other embodiments the converter may be of any type, conventionally called but not limited to boost, buck-boost, buck, Cuk, resonant, switched capacitor, and even critical conduction mode. The addition of the second error signal as a first order correction may be added to the first error signal in any of them in order to add power factor correction in addition to the primary function of voltage or current regulation at the output. Embodiments of the present disclosure do not impact the design of the converter except for adding the second error signal to the first error signal and a new current measurement circuit.

In this embodiment the converter consists of a switch, an inductor, a diode, a gate driver, and the control circuitry to control the gate driver. The converter in other embodiments may include inductors and two or more switches configured to control a current flowing through inductors and capacitors. The first error signal can be responsive to a current of the output power signal.

According to another example embodiment, an electrical circuit for power factor correction (PFC) is provided. The electrical circuit may include a converter previously described. The converter can be configured to receive an AC input power signal having an input voltage at a fundamental frequency and to generate a DC output power signal having an output voltage or current. The electrical circuit can include a first reference signal voltage source. The electrical circuit can include a first measuring circuitry configured to generate, based on the output voltage, a first measurement signal. The electrical circuit may include a first operational circuitry configured to subtract the first reference signal from the first measurement signal, called the first difference, to obtain a first error signal. The electrical circuit can include current sensing circuitry configured to generate a current sense signal based on the input current. The electrical circuit may include a second reference circuitry configured to generate, based on the input voltage, a second reference signal. The second reference signal is a sinusoidal signal proportional to the rectified input voltage. The difference between the current sense signal and the second reference signal is called the second difference.

The electrical circuit can include a regulating circuitry configured to control magnitude of the second reference signal with the second control signal. The electrical circuit can include a second operational circuitry configured to subtract the second measurement signal from the current sense, called the second difference, and create a second control signal. The second difference can be minimized by controlling, by the regulating circuitry, a response of the second reference circuitry such that the second difference includes mainly overtones of the fundamental frequency and largely lacks a signal corresponding to the fundamental frequency. A third operational circuitry can be configured to generate, based on the second difference, a second error signal. The bandwidth of the second error signal may be substantially greater than the input frequency and the bandwidth of the first error signal. The amplitude of the second error signal may be less than the amplitude of the first error signal. The electrical circuit can include a summing circuitry configured to add the second error signal and the first error signal to obtain a first control signal to control the switch, where the summing signal is used to regulate the switch of the converter. The result is a regulated output of the converter and a maximization of the power factor.

According to another example embodiment of the present disclosure, an electrical circuit power supply with power factor correction is provided. The electrical circuit power supply may include one or more of the following: inductors, capacitors, transformers, switches, amplifiers, comparators, analog-to-digital converters, digital-to-analog converters, and diodes. The electrical circuit power supply may include a means for controlling the switches with a first control signal in order to control currents in the inductors, transformers, capacitors, and switches in order to control and regulate an output voltage or an output current, and to maximize a power factor of an input current from a sinusoidal voltage source or rectified sinusoidal voltage source at a fundamental frequency.

The electrical circuit power supply may include a means of measuring one of the output voltage or output current and comparing one of the output voltage or output current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the output voltage or the output current, the first error signal having a first frequency and a first bandwidth.

The electrical circuit power supply may include current measurement a means for measuring the input current and generating a current measurement signal from the input current.

The electrical circuit power supply may include a means for controlling a gain or magnitude of the current measurement signal generated by the current measuring means.

The electrical circuit power supply may include a means for generating a second reference signal, the second reference signal comprising a sinusoidal reference voltage or a rectified sinusoidal reference voltage derived from the input voltage, and creating a second difference by subtracting the second reference signal from the current measurement signal.

The electrical circuit power supply may include a means, a second operational circuit, of creating a second control signal proportional to the second difference, the second difference signal having a second bandwidth and a second frequency, the second control signal controlling one of a gain or magnitude of the current measurement signal in order to minimize the second difference.

A third operational circuitry can be configured to generate, based on the second difference, a second error signal. The electrical circuit can include a summing circuitry configured to add the second error signal and the first error signal to obtain a first control signal to control the switch, where the summing signal is used to regulate the switch of the converter. The result is a regulated output of the converter and a maximization of the power factor.

The current measurement means may include a field effect device. The current measurement may include a Metal Oxide Silicon Field Effect Transistor (MOSFET). The current measurement means may include one of the following: a digitally controlled resistor or a digital-to-analog converter. The current measurement means may utilize a current transformer.

Each of the second control signal, the first error signal, second error, first control signal, and second difference may be a voltage or a digital signal.

The bandwidth of the second control signal can be substantially less than the fundamental frequency while the bandwidth of the second error signal can be substantially greater than the fundamental frequency. The bandwidth of the second error signal can be also substantially greater than the bandwidth of the first error signal. A magnitude of the second error signal can be substantially less than a magnitude of the first error signal.

According to yet another example embodiment of the present disclosure, a method for the PFC is provided. The method may include receiving, by a converter controlled via a switch, an input power signal having an input voltage at a fundamental frequency. The method may also include generating, by the converter, an output power signal having an output voltage. The converter is controlled by a first control signal. The method may also include, providing, by a reference voltage source, a reference signal. The method may also include generating, by a first measuring circuitry, based on the output voltage, a first measurement signal. The method may also include, subtracting, by a first operational circuitry, the first reference signal from the first measurement signal to obtain a first error signal. The difference between the first reference and the first measurement signal is the first difference.

The method may also include generating, by an adaptive sensing circuitry a current sense signal. The method may also include generating, by a second reference signal, based on the input voltage, a second reference signal. The difference is called the second difference. The method may also include subtracting, by a second operational circuitry, the second measurement signal from the second reference signal to obtain a second control signal.

The second difference can be minimized by controlling a response of the adaptive current sensing circuitry by means of the second reference signal such that the second difference include substantially only overtones of the fundamental frequency and lack substantially a signal corresponding to the fundamental frequency. The method may also include generating, by a third operational circuitry, based on the second difference, a second error signal. The method may also include adding, by a summing circuitry, the second error signal and the first error signal to obtain a first control signal. The method may also include providing, by the summing circuitry, the first control signal to the switch, wherein the first control signal is used to regulate the switch of the converter to control the output and to maximize the power factor simultaneously.

In some aspects, the techniques described herein relate to an electrical circuit power supply with power factor correction, the electrical circuit power supply including: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an input voltage or an input current, and to maximize a power factor of an output current into a sinusoidal voltage source at a fundamental frequency; a means for measuring one of the input voltage or the input current and comparing one of the input voltage or the input current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the input voltage or the input current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the output current and generating a current measurement signal from the output current; a means for generating a second reference signal, the second reference signal including a sinusoidal reference voltage or a rectified sinusoidal reference voltage derived from an output or similar reference voltage, and generating a second difference by subtracting the second reference signal from the current measurement signal; and a means for generating a second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal being used to control one of a gain or a magnitude of the current measurement signal in order to minimize the second difference.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means is a field effect device.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means is a Metal Oxide Silicon Field Effect Transistor (MOSFET).

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means is one of a digitally controlled resistor or a digital-to-analog converter.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means utilizes a current transformer.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second control signal is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second control signal is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first error signal is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first error signal is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, further including: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second error signal is a voltage or a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first control signal is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first control signal is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second difference is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second difference is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the control signal frequency bandwidth is less than the fundamental frequency.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second error frequency bandwidth of the second error signal is greater than the fundamental frequency.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second error frequency bandwidth of the second error signal is greater than the first error frequency bandwidth of the first error signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein a maximum magnitude of the second error signal is less than a maximum magnitude of the first error signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply with power factor correction, the electrical circuit power supply including: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an input voltage or an input current, to control a wave form of an output current, and to maximize a power factor, the output current being delivered into a sinusoidal voltage source at a fundamental frequency; a means for measuring one of the input voltage or the input current and comparing one of the input voltage or the input current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the input voltage or the input current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the output current and generating a current measurement signal from the output current; a means for generating a second reference signal including of an alternating current (AC) reference signal proportionately reduced from an output voltage by a means of a controlled voltage divider responsive to a second control signal; a first means for controlling a magnitude of a reduction of the output voltage and generating a second difference by subtracting the AC reference signal from the current measurement signal; and a means for generating the second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal driving the first means in order to minimize the second difference.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means includes one of a resistor, a gate field-effect transistor (JFET), a Metal Oxide Silicon Field Effect Transistor (MOSFET), or a digitally controlled resistor bridge.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the current measurement means utilizes a current transformer.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the controlled voltage divider is a resistor divider with a voltage variable resistor.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the voltage variable resistor is a MOSFET, a field effect device, or a digitally controlled resistor divider.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second control signal is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second control signal is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first error signal is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the first error signal is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, further including: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second error signal is a voltage or a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second difference is a voltage.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second difference is a digital signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the control signal frequency bandwidth of the second control signal is less than the fundamental frequency.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the control signal frequency bandwidth is greater than the fundamental frequency.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein the second error frequency bandwidth of the second error signal is greater than the first error frequency bandwidth of the first error signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply, wherein a maximum magnitude of the second error signal is less than a maximum magnitude of the first error signal.

In some aspects, the techniques described herein relate to an electrical circuit power supply with power factor correction, the electrical circuit power supply including: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an output voltage or an output current, and to minimize noise and ripple of a DC input current from a DC voltage source; a means for measuring one of the output voltage or the output current and comparing one of the output voltage or the output current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the output voltage or the output current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the DC input current and generating a current measurement signal from the DC input current; a means for generating a second reference signal, the second DC reference signal, and generating a second difference by subtracting the second reference signal from the current measurement signal; and a means for generating a second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal being used to control one of a gain or a magnitude of the current measurement signal in order to minimize the second difference.

In some aspects, the techniques described herein relate to an electrical circuit power supply with power factor correction, the electrical circuit power supply including: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an output voltage or an output current, to control minimize noise and ripple of a DC input current, the DC input current being received from a DC voltage source; a means for measuring one of the output voltage or the output current and comparing one of the output voltage or the output current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the output voltage or the output current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the DC input current and generating a current measurement signal from the DC input current; a means for generating a second reference signal including of a DC current reference signal proportionately reduced from an input voltage by a means of a controlled voltage divider responsive to a second control signal; a first means for controlling a magnitude of a reduction of the input voltage and generating a second difference by subtracting the DC reference signal from the current measurement signal; and a means for generating the second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal driving the first means in order to minimize the second difference.

Other example embodiments of the disclosure and aspects will become apparent from the following description taken in conjunction with the following drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:

FIG. 1 is a high-level block diagram of an example electrical circuit for power factor correction (PFC), according to some embodiments of the present disclosure.

FIG. 2 is a block diagram showing an example electrical circuit for power factor correction (PFC), according to an example embodiment.

FIG. 3 is a block diagram showing an example electrical circuit for power factor correction (PFC), according to another example embodiment.

FIG. 4A is a flow chart showing steps of method for PFC, according to some example embodiments.

FIG. 4B is a flow chart showing additional steps of a method for PFC, according to some example embodiments.

FIG. 5 is a block diagram showing another example electrical circuit for power factor correction (PFC), according to another example embodiment.

DETAILED DESCRIPTION

The technology disclosed herein relates to electrical circuits and methods for power factor correction (PFC) by measurement and removal of overtones or harmonics generated by loads connected to power grids. Embodiments of the present disclosure may allow improving the PFC in electrical circuits, which, in turn, may allow increasing efficiency of power grids. Furthermore, embodiments of the present disclosure may result in better performance of power grids in the best-case conditions and allow extending operating ranges of power grids and electrical circuits. Unlike existing technological solutions for the PFC, embodiments of the present disclosure may facilitate more efficient PFC in power grids when alternating current (AC) passes through a range of low current and low voltage each cycle, as the AC voltage goes through zero. Specifically, embodiments of the present disclosure may allow improving PFC in converters, for example, AC to direct current (DC) converters, and, thereby, increase power efficiency of the converters.

Embodiment of the present disclosure may solve at least some issues presented in current solutions for power factor correction. For example, embodiments of the present disclosure can allow operating electrical circuits for PFC at a largely constant frequency than existing PFC solutions, which facilitates reducing switching noise and Electro-Magnetic Interference (EMI). Embodiment of the present disclosure may also allow removal of the deviations of the waveform of the load current from the sinusoidal shape, which appear as overtones or harmonics of the fundamental frequency of the input power voltage in order to correct and improve the power factor of the load. Embodiment of the present disclosure may also facilitate removing phase errors in electrical circuits.

Embodiments of the present disclosure may improve designs of electrical circuits for PFC by replacing high speed current feedback loops, for example, a high-speed current sense, with low frequency loops. Embodiments of the present disclosure may allow avoiding the use of multiplier circuits in PFC circuits. Embodiments of the present disclosure involve current sensing for PFC and utilize removal of overtones of the sensed current. Therefore, embodiments of the present disclosure can be used with any converter having a circuit with an output voltage control loop and a voltage control error signal, or an output current control loop with a current control signal. Embodiment of the present disclosure may allow measuring of how closely the input current follows the sinusoidal input voltage. Such circuits allow improving PFC by increasing the operational range of power factor control.

According to an example embodiment of the present disclosure, an electrical circuit for PFC may include a converter using a switch, an inductor, and a diode. The converter can be configured to receive an input power signal having an input voltage at a fundamental frequency and generate a substantially constant output power signal having an output voltage. The electrical circuit may include a reference voltage source configured to provide a reference signal having a reference voltage. The electrical circuit may include a first measuring circuitry configured to generate, based on the output voltage, a first error signal 114. The electrical circuit may include a first operational circuitry 140 configured to subtract the first reference signal from the first measurement signal (also referred to as the first difference 122), to obtain a first error signal. The operation of the first error signal is to largely minimize the value of the first difference 122.

The electrical circuit may include adaptive current sense circuitry configured to generate, proportional to the input current, a current sense signal 104. The second measurement method includes a sinusoidal reference signal 102. The electrical circuit may include a second operational circuitry 125 configured to subtract the sinusoidal reference from the second measurement signal to obtain a second control signal 106. The second difference can be minimized by controlling the response of the adaptive sensing circuitry such that the second difference 108 includes mainly overtones of the fundamental frequency and largely lacks a signal corresponding to the fundamental frequency. The third operational circuitry 130 can generate, based on the second difference, a second error signal. The electrical circuit can include a summing unit 150 configured to add the second error signal and the first error signal to obtain the first control signal 116 to control the switch. The first control signal 116 can be used to regulate the switch of the converter in order to regulate the output and to maximize the power factor.

FIG. 1 is a high-level block diagram of an example electrical circuit 100 for PFC, according to an example embodiment. The electrical circuit 100 can include rectifier and filters 105, adaptive current sense with feedback 110, converter 115, power output 120, PFC detection amplifier (also called the second operational circuitry 125), amplifier 130 (also called the second operational circuitry amplifier 140), (also called the first operational circuitry), summing unit 150, and reference 160. In other embodiments the converter 115 may include switches, inductors, capacitors, diodes, transformers, amplifiers, and other circuitry including digital signal processors.

The rectifier and filters 105 may be configured to convert a power AC electrical signal, which periodically reverses the direction, into a rectified sinusoidal AC electrical supply 107 (current and voltage) having a fundamental frequency. The rectified sinusoidal AC electrical supply 107 may then provide power to converter 115 via the adaptive current sense with feedback 110.

The converter 115 may receive the rectified sinusoidal AC electrical supply and convert the rectified sinusoidal AC electrical supply into a DC electrical supply. The switches of converter 115 may include metal-oxide-semiconductor field-effect transistors (MOSFETs). An operational cycle of the converter may involve switching the switch on and off to charge and discharge an inductor. The rectified AC electrical current received by the converter 115 may be distorted from a sinusoidal shape and shifted in phase due to the operation of the switches, diodes, inductors, and control circuitry. This can result in a presence of overtones of the fundamental frequency, reactive phase shifts, and reduced power factor in the input supply received by the converter 115.

The power output 120 may include a first measuring circuitry configured to generate, based on the output voltage, an output sample signal 118 (also referred to as a first measurement signal). The reference 160 may include a voltage source configured to provide a reference signal 119. The amplifier 140 can be configured to amplify the difference between the reference signal 119 from the output sample signal 118, to obtain a first error signal 114 by means of the first operational circuitry 140. The difference between the reference signal 119 from the output sample signal 118 is referred herein to as the first difference 122.

The adaptive current sense with feedback 110 may be configured to sense the input current received by the converter 115 and generate an input current sense signal 104). The current sense signal 104 is then provided to PFC detection amplifier also called the second operational circuitry 125.

The rectifier and filters 105 may include a second reference circuit configured to generate, based on the AC input voltage, an AC sine wave reference signal 102. The AC sine wave reference signal 102 can be a rectified sinusoidal signal. The AC rectified sine wave reference signal 102 is provided to PFC detection amplifier 125.

PFC detection 125 can be configured to amplify the difference between the reference signal 102 from the current sense signal 104. The second difference 108 is found by subtracting the value of the sine wave reference signal 102 from the current sense signal 104, and the second difference 108 is presented to the PFC detection amplifier 125 which generates the second control signal 106. The second control signal 106 causes the adaptive current sense with feedback 110 to minimize the second difference 108. The effect of this minimization is largely due to the removal of the fundamental frequency from the second difference 108. The second difference 108 then largely contains only harmonics or overtones of the fundamental frequency. The bandwidth of the second control signal 106 is much less than the input AC frequency.

The amplifier 130 (also called the third operational circuitry) receives the second difference 108. The amplifier 130 can be configured to generate, based on the second difference 108, a second error signal 112. The summing unit 150 combines the second error signal 112 and the first error signal 114 to obtain the first control signal 116 (also referred to as a summing signal) and provide the first control signal 116 to control the converter 115. The first control signal 116 can be used to regulate the converter to regulate operational cycles of the converter 115.

The action of the second error signal 112 is to largely remove the harmonics or overtones, and also phase shifts, in the rectified sinusoidal AC electrical supply 107 by minimizing the overtones or harmonics in the second difference, while controlling the output voltage or current 118 via the first error signal 114.

The operation of the second control signal 106 is to largely remove the fundamental frequency signal from the second difference 108. The operation of the second error signal 112 is to largely remove the remaining harmonics of the fundamental from the second difference 108 which removes them from the output.

FIG. 2 is a block diagram showing an example electrical scheme 200 for power factor correction, according to an example embodiment. The electrical scheme 200 can be an implementation of the electrical circuit 100 shown in FIG. 1.

In electrical scheme 200, the rectifier and filters 105 is carried out by inductors L4 and L5, capacitors C1 and C1A, and diodes D2, D3, D4, and D5. The AC sine wave reference circuit of the rectifier and filters 105 is carried out by resistors R88, R89, R92, and R93 and capacitors C58 and C59. The adaptive current sense with feedback 110 is carried out by the voltage-controlled resistor Gsense, which may be a MOSFET. Capacitors C1 and C1A may be sized to supply energy to the converter when the input voltage falls to zero.

The converter 115 is carried out by inductor L1, gate driver X20, MOSFET X12, and diode D1. The power output 120 includes the first measurement circuitry carried out by capacitor C11 and resistors R6 and R7. The devices Rload and C2 are the output load.

PFC detection amplifier (or second operational circuitry) 125 is carried out by amplifier X26, resistor R46, capacitors C41 and C30, resistors R74 and R44, and capacitors C46 and C47.

In the electrical scheme 200, the amplifier (third operational circuitry) 130 is amplifier X22, the amplifier 140 (or first operational circuitry) is amplifier X_ERRAMP, both current mode amplifiers, and the summing unit 150 is carried out by resistor Rerr and capacitor C40 where the output currents are summed.

The rectifier and filters 105 is designed to remove switching noise from the supply lines. One of the terminals of the rectifier and filters 105 is designated as a circuit ground.

The voltage-controlled resistor Gsense 110 is connected to the circuit ground. The resistor Gsense 110 is designated as the adaptive current sense with feedback. In some embodiments, the variable voltage resistor Gsense can be implemented by a low resistance MOSFET device using the gate as a control node. The voltage on node SENSE 104 is the result of the total current flowing in the rectifier and filters 105. The electrical circuit 200 is designed to make the current flowing in the rectifier and filters 105 to be sinusoidal and in-phase with the input voltage.

The other terminal of the voltage-controlled resistor Gsense 110 is connected to the source of the power switching device denoted herein as MOSFET X12, the output filter capacitor C2, and load Rload. The resistance of the resistor Gsense 110 may be low, typically tens of milliohms, to measure a current of tens of amperes.

The power switch MOSFET X12 may be a high voltage and high current device. The power switch MOSFET X12 can be driven by a high speed, low impedance, gate driver X20. The gate driver in turn can be controlled by a voltage generated by the pulse width modulator x21 to perform pulse width modulation of the converter 115. Logic controlling the gate drive may have an error handling logic which protects the switching power device from error conditions. One of the error conditions is determined by measuring the power device current to protect the switch X12. The cycle is ended if current exceeds a threshold. Another condition is detected at the end of the cycle by determining that the current in the input inductor L1 has fallen to zero by the end of the cycle also to protect the switch. The third condition is to make sure that the output voltage does not exceed a threshold to protect the load.

The positive side of the rectifier and filters 105 is connected to the inductor L1. The inductor L1 serves as an energy storage device which is used to transfer packets of energy at high frequency through rectifier diode D1 to the output load Rload and output filter C2. The output filter capacitor C2 smooths high frequency energy dumps to create a regulated output voltage to the load Rload. The power switch MOSFET X12 causes energy to be stored in the inductor L1 which is then transferred to the load Rload through diode D1.

A resistor divider including resistors R93, R89, and R88 produces a voltage at VDIV 102. The voltage VDIV 102 may be on the order of around a volt and may be divided down from a source of hundreds of volts. The voltage at VDIV 102 may have the form of a rectified sine wave.

The electrical circuit 200 is designed to make the filtered voltage from SENSE at FSENSE 104 largely equal to the voltage at VDIV 102. If the filtered voltage SENSE, FSENSE 104, is largely equal to the voltage at VDIV, then the power factor of the electrical circuit 200 is largely 1. This condition is achieved by introducing the amplifier X26. The purpose of the amplifier X26 is to close the loop by controlling the gain of the voltage-controlled resistor Gsense 110 and drive the voltage on node FSENSE 104 as close as possible to the voltage on node VDIV. The result is that the voltage difference between FSENSE 104 and VDIV 102 has largely no voltage at the fundamental frequency. The resultant difference is due to power factor deviations.

The resistors R74 and R44 and capacitors C46 and C47 filter out the high frequency switching noise in the input voltage and reduce the bandwidth of FSENSE to some multiples of the input frequency to obtain a smoothed signal presented at the negative input of amplifier X26. The sinusoidal signal on VDIV 102 is connected to the positive input of the amplifier X26. The output of the amplifier X26 is provided to a low pass filter having a few hertz bandwidth. The low pass filter is formed by resistor r46 and capacitor C30 to produce 106. The filtered output of the amplifier X26 is provided to the control terminal of the voltage variable resistor Gsense. The functionality of the amplifier X26 and the low pass filter is to make the voltage on FSENSE 104 as close as possible to the voltage on VDIV 102 averaged over a number of cycles of the AC supply. The voltage difference between VDIV 102 and FSENSE 104 are largely the deviations from the fundamental frequency, that is, the overtones or harmonics from the fundamental frequency and possibly phase shifts. Thus, the fundamental frequency is largely removed in the voltage difference between VDIV 102 and FSENSE 104.

Another function of the amplifier X26 is to limit the number of harmonics admitted to the correction circuitry. This is accomplished with the feedback capacitor C41 and the resistor R44. The feedback capacitor C41 and the resistor R44 limit the bandwidth of the difference signal between VDIV 102 and FSENSE 104 largely to a few kilohertz. The second difference 108 between VDIV 102 and FSENSE 104 includes the overtones which are to be removed by the electrical circuit through amplifier X22 130. Amplifier X22 works to reduce the remaining components of second difference 108, which contain the PFC errors, largely to zero.

The output voltage is controlled by amplifier X_ERRAMP. The dominant pole is created by the output capacitor C2. The output voltage VLOAD is divided by resistor divider R6 and R7. The divided voltage, FB 118, is presented to the negative input of amplifier X_ERRAMP. A reference voltage generated by the reference 160 is provided to the positive input of the amplifier X_ERRAMP 140. The amplifier X_ERRAMP 140 can be a current output amplifier with a current output. The current output of amplifier X_ERRAMP is introduced to the resistor Rerr to be converted to a voltage. Rerr sums the output currents of amplifier X22 and X_ERRAMP and converts the currents to a voltage, the first control signal 116. The error voltage on node ERR is presented to the circuitry X21. The circuitry X21 converts error voltage to duty factor of the MOSFET X12.

In some error conditions, if the inductor L1 current does not drop to zero before the end of the cycle of the converter 115, a new cycle is not initiated. If the current in the inductor L1 exceeds a limit, the MOSFET X12 is turned off to protect the MOSFET switch. If the output voltage exceeds a limit, the cycle of the converter 115 is turned off to protect the load.

Overtone removal occurs through the amplifier X22 130. The output of amplifier X22 130 is summed with the output of the amplifier X_ERRAMP 140. The amplifier X22 130 forces the current in GSENSE to be largely sinusoidal by removing the residual, non-sinusoidal, components in the load current. This is accomplished by minimizing the difference between FSENSE 104 and VDIV 102.

In some embodiments, the inductor L1, can be replaced by a transformer, such that the magnetic energy is transferred to the output via a secondary winding. The electrical circuit with the transformer can be similar to the electrical circuit 200 except for using another form of feedback, such as an optocoupler, to regulate the output voltage. To operate, the output of the optocoupler needs to be summed with the output of the amplifier X22 130.

For an AC to DC converter to work, the output bandwidth is required to be approximately equal to or less than the frequency of the input AC signal, otherwise the output would substantially vary as the input voltage. For the overtone removal to work, the output current from amplifier X22 needs to have a bandwidth significantly higher than several multiples of the input voltage frequency. Thus, the pole of capacitor C40 and resistor Rerr needs to be substantially greater than the unity gain bandwidth of the dominant pole of capacitor C2 of the main error loop.

The electrical circuit 200 can be adapted to work on a three-phase input, keeping the phases in balance. In this case the input current needs to be measured by a different method, other than a resistor in the ground line, because the ground current of all three phases flows in the resistor. This limitation can be overcome by use of current transformers in the three legs of the three-phase bridge rectifier and the use of matched harmonic amplifiers coupled with matched error amplifiers. The current in each of the three legs might be leveled, further improving power factor on the higher level of the three-phase system.

FIG. 3 is a block diagram showing an example electrical circuit 300 for power factor correction, according to another example embodiment. The electrical scheme 300 can be an implementation of the electrical circuit 100 shown in FIG. 1. The electrical scheme 300 is a modification of the electrical scheme 200. The difference between the electrical circuit 200 is that the adaptive current sense with feedback 110 (variable voltage resistor Gsense) in the circuit 300 is replaced with a fixed resistor Rsense and the resistor R88 is replaced with variable voltage resistor Gres. The general operation is similar except now FAMPOUT 106 is connected to Gres. Also, the inputs to the amplifier X26 are reversed.

In some embodiments of the present technology, as shown in FIG. 2 if the supplies 105 are replaced by DC power supplies, the circuit becomes an DC to DC converter. A DC to DC converter changes voltage levels between input and output. The circuit as described, with no other modification, will operate to remove noise and AC ripple from the input current. This ripple and noise may be introduced by an AC load, like a DC to AC converter, connected to the output of the DC to DC converter. This circuit has the advantage of keeping the input current constant. This may be an advantage for some input supplies such as battery and solar panels that may have better performance with low output current ripple.

FIG. 4A and FIG. 4B are a flow chart of method 400 for power factor correction, according to some example embodiments. The method 400 can be implemented, for example, by the electrical circuit 200 shown in FIG. 2.

In block 405, the method 400 may commence with receiving, by a converter controlled via a switch, an input power signal having an input voltage at a fundamental frequency. The switch is configured to regulate a current in the inductor or transformer responsive to a first control signal. In other embodiments the converter may include one or more inductors or one or more one or more transformers, and one or more switches.

In block 410, the method 400 may include generating, by the converter, an output power signal having an output voltage. The switch of the converter can be controlled by a pulse width modulator. The output of the switch can be controlled by regulating a duty cycle of the pulse width modulator and without changing a frequency of turning the switch on and off.

In block 415, the method 400 may include providing, by a reference voltage source, a reference signal.

In block 420, the method 400 may include generating, by a first measuring circuitry, based on the output voltage, a first measurement signal.

In block 425, the method 400 may include subtracting, by a first operational circuitry, the first reference signal from the first measurement signal to obtain a first error signal. The first error signal is responsive to the output of the converter.

In block 430, the method 400 may include generating, by an adaptive sensing circuitry, based on the input voltage, a current sense signal proportional to the input current. The adaptive sensing circuitry may include a voltage variable resistor. This resistor may be a MOSFET, JFET, or a digitally controlled resistor.

In block 435, the method 400 may include generating, by a second measurement circuitry, based on the input voltage, a second reference signal. The second reference signal is a rectified sinusoidal signal. The second measurement circuitry may include a voltage variable resistor. The second measurement circuitry may include a current transformer in some embodiments.

In block 440, the method 400 may include subtracting, by a second operational circuitry, the second reference signal from the current sense signal to obtain a second difference signal. The difference signal is minimized by controlling a response of the adaptive sensing circuitry utilizing a voltage variable resistor to take the average of the difference signal. The difference signal then includes substantially only overtones of the fundamental frequency and lacks substantially a signal corresponding to the fundamental frequency.

In block 445, the method 400 may include generating, by a third operational circuitry, based on the second difference signal, a second error signal. A bandwidth of the first error signal can be less than a bandwidth of the second error signal. The maximum amplitude of the second error signal is nominally less than the maximum amplitude of the first error signal.

In block 450, the method 400 may include adding, by a summing circuitry, the second error signal and the first error signal to obtain a summing signal (the first control signal); and

In block 455, the method 400 may include providing, by the summing circuitry, the summing signal to the switch, wherein the summing signal is used to regulate the switch of the converter, in order to regulate the output voltage and to substantially maximize the power factor simultaneously.

FIG. 5 is a block diagram showing another example electrical circuit for power factor correction (PFC), according to another example embodiment. FIG. 5 is a block diagram showing an example electrical scheme 500 for power factor correction, according to an example embodiment. The electrical scheme 500 can be an implementation of the electrical circuit 100 shown in FIG. 1.

In some embodiments, the same circuits and principles of FIG. 1, FIG. 2 and FIG. 3 are used not to power factor correct the input current into a DC switch-mode regulator. Rather they are used to power factor correct the output current of a DC to AC converter. This means removing the harmonics and phase shifts of the output current. So instead of sensing the input AC voltage and input current, the output AC voltage and current are measured and the voltage Vdiff is used to correct the phase and remove harmonics from the output current instead of the input current.

It should be noted that both the parental patent applications U.S. patent application Ser. No. 17/237,973, filed Apr. 22, 2021, which is a continuation of U.S. patent application Ser. No. 17/102,035, filed Nov. 23, 2020 are used to interface DC loads and sources with low impedance AC loads and sources in various embodiments. The voltage of the AC load or source is determined by the external environment such as a generator. The circuit is only controlling currents into, or out of, a zero-impedance source or sink. For example, referring to FIG. 5 and XAmp1 and XAmp2 are the equivalent of Amp1 and Amp2 of previous figures. For example, the voltage on the output is measured by a full wave rectifier, here through a transformer K3 to give the interior circuit some isolation from the power circuit. The value VDIV is divided down to be a small fraction of the output voltage.

In some embodiments, the output is, in this example, a pulse width modulated switch-mode converter driving current into the external circuit through transformer K2. This is only one of a large number of possible switch-mode regulator circuits which can be used with this method. The sign of the external wave determines which primary winding of K2 is used. The current in the primary windings of K2 are proportional to the current in the output winding. This current is passed through a variable resistor, here a MOSFET, M_VAR. The signal, VDIFF=Vdiv−fsense, is amplified and combined with the signal regulating the output current into the external AC circuit from a battery or solar cells. The difference voltage, VDIFF, contains the harmonic content of the current signal.

In various embodiments, that control voltage could be proportional to some average DC current output from the DC source as it is in this concept. It could be relative to some voltage like the battery charge voltage or battery temperature. The output of that error amplifier, here called ERROR AMPLIFIER, is combined with the output of the HARMONICS AMPLIFIER to form the composite signal to control both the nominal DC source condition, like average current, and the signal used to remove the non-sinusoidal components of the output current. The error signal will be used to control the switching regulator to control the current injected into the AC line by the transformer K2. This injected current will be power factor corrected. For example, there is a switch SW1 indicated here. It is to show that the circuit will work without the addition of the power factor correction, albeit with poor power factor.

In some embodiments, in this representative circuit the error signal is multiplied by a sinusoidal voltage derived from the output voltage, as show in the schematic as PRODUCT FUNCTION. This is included to make the output current closer to sinusoidal without the use of the power factor correction circuit. The power factor of this circuit alone will be poor but better than with no multiplication. This multiplication is done in a millisecond time frame, on the order of the frequency of the AC output voltage wave form. In this example the switch-mode current is steered though the primary winding of transformer K2 to produce an AC sinusoidal current injected into the AC voltage output. There are many possible ways to implement the AC current injection in addition to this example. This is simply representative. There are many other methods for interfacing the DC source with an AC load which do not require a transformer. These methods generally work with switched capacitors. This general method of power factor correction will work with these methods in various embodiments.

In various embodiments, the external AC signal is sampled by transformer K3. That sample is used to drive the switch-mode regulator as a 1^(st) order sinusoidal reference wave form. The output of the HARMONICS AMPLIFIER, or DIFFAMP, removes the remaining non-sinusoidal components of that wave by negative feedback.

In some embodiments, it is proposed that the power factor of this circuit is limited only by the gain of the amplifiers and should be very close to 1. The simulations of the parental patent applications U.S. patent application Ser. No. 17/237,973 filed Apr. 22, 2021, which is a continuation of U.S. patent application Ser. No. 17/102,035, filed Nov. 23, 2020, confirm this projection. For example, the result is that the claims of parental patent applications U.S. patent application Ser. No. 17/237,973, filed Apr. 22, 2021, which is a continuation of U.S. patent application Ser. No. 17/102,035, filed Nov. 23, 2020 are identical to the claims of the new extension except for the direction of information flow. Inputs and outputs are changed. In the first case current is withdrawn from a low impedance AC voltage wave form. In the second case current is injected into a low impedance AC wave form. Again, it must be emphasized, that this invention is an add-on to other solutions to the problem of injecting current from a battery into an AC circuit. The add-ons are Xamp1, Xamp2 and DIFFAMP. The switch in FIG. 5 emphasizes this point.

A Non-Patent Literature document in the journal Transactions on Power Electronics by Yon Zhang, et. al, titled “Capacitors Voltage Ripple Complementary Control on Three-Level Boost Fed Single-Phase VSI With Enhanced Power Decoupling Capability,” IEEE Trans. on Power Electronics, Vol. 36, No. 12, pp. 14220-14236, December 2021 is incorporated by reference for all purposes. This Non-Patent Literature document is on the subject of injecting current from a battery to an AC line. This Non-Patent Literature document deals with a method of using capacitors to inject current into the AC source rather than a transformer as used in the present disclosure. This Non-Patent Literature document does not disclose the present technology, although it would benefit with the bolt-on addition of this technique in several ways.

The present technology is described above with reference to example embodiments. Therefore, other variations upon the example embodiments are intended to be covered by the present disclosure. 

What is claimed is:
 1. An electrical circuit power supply with power factor correction, the electrical circuit power supply comprising: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an input voltage or an input current, and to maximize a power factor of an output current into a sinusoidal voltage source at a fundamental frequency; a means for measuring one of the input voltage or the input current and comparing one of the input voltage or the input current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the input voltage or the input current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the output current and generating a current measurement signal from the output current; a means for generating a second reference signal, the second reference signal comprising a sinusoidal reference voltage or a rectified sinusoidal reference voltage derived from an output or similar reference voltage, and generating a second difference by subtracting the second reference signal from the current measurement signal; and a means for generating a second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal being used to control one of a gain or a magnitude of the current measurement signal in order to minimize the second difference.
 2. The electrical circuit power supply of claim 1, wherein the current measurement means is a field effect device.
 3. The electrical circuit power supply of claim 1, wherein the current measurement means is a Metal Oxide Silicon Field Effect Transistor (MOSFET).
 4. The electrical circuit power supply of claim 1, wherein the current measurement means is one of a digitally controlled resistor or a digital-to-analog converter.
 5. The electrical circuit power supply of claim 1, wherein the current measurement means utilizes a current transformer.
 6. The electrical circuit power supply of claim 1, wherein the second control signal is a voltage.
 7. The electrical circuit power supply of claim 1, wherein the second control signal is a digital signal.
 8. The electrical circuit power supply of claim 1, wherein the first error signal is a voltage.
 9. The electrical circuit power supply of claim 1, wherein the first error signal is a digital signal.
 10. The electrical circuit power supply of claim 1, further comprising: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.
 11. The electrical circuit power supply of claim 10, wherein the second error signal is a voltage or a digital signal.
 12. The electrical circuit power supply of claim 1, wherein the first control signal is a voltage.
 13. The electrical circuit power supply of claim 1, wherein the first control signal is a digital signal.
 14. The electrical circuit power supply of claim 1, wherein the second difference is a voltage.
 15. The electrical circuit power supply of claim 1, wherein the second difference is a digital signal.
 16. The electrical circuit power supply of claim 1, wherein the control signal frequency bandwidth is less than the fundamental frequency.
 17. The electrical circuit power supply of claim 10, wherein the second error frequency bandwidth of the second error signal is greater than the fundamental frequency.
 18. The electrical circuit power supply of claim 10, wherein the second error frequency bandwidth of the second error signal is greater than the first error frequency bandwidth of the first error signal.
 19. The electrical circuit power supply of claim 10, wherein a maximum magnitude of the second error signal is less than a maximum magnitude of the first error signal.
 20. An electrical circuit power supply with power factor correction, the electrical circuit power supply comprising: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an input voltage or an input current, to control a wave form of an output current, and to maximize a power factor, the output current being delivered into a sinusoidal voltage source at a fundamental frequency; a means for measuring one of the input voltage or the input current and comparing one of the input voltage or the input current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the input voltage or the input current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the output current and generating a current measurement signal from the output current; a means for generating a second reference signal comprising of an alternating current (AC) reference signal proportionately reduced from an output voltage by a means of a controlled voltage divider responsive to a second control signal; a first means for controlling a magnitude of a reduction of the output voltage and generating a second difference by subtracting the AC reference signal from the current measurement signal; and a means for generating the second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal driving the first means in order to minimize the second difference.
 21. The electrical circuit power supply of claim 20, wherein the current measurement means includes one of a resistor, a gate field-effect transistor (JFET), a Metal Oxide Silicon Field Effect Transistor (MOSFET), or a digitally controlled resistor bridge.
 22. The electrical circuit power supply of claim 20, wherein the current measurement means utilizes a current transformer.
 23. The electrical circuit power supply of claim 20, wherein the controlled voltage divider is a resistor divider with a voltage variable resistor.
 24. The electrical circuit power supply of claim 23, wherein the voltage variable resistor is a MOSFET, a field effect device, or a digitally controlled resistor divider.
 25. The electrical circuit power supply of claim 20, wherein the second control signal is a voltage.
 26. The electrical circuit power supply of claim 20, wherein the second control signal is a digital signal.
 27. The electrical circuit power supply of claim 20, wherein the first error signal is a voltage.
 28. The electrical circuit power supply of claim 20, wherein the first error signal is a digital signal.
 29. The electrical circuit power supply of claim 20, further comprising: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.
 30. The electrical circuit power supply of claim 29, wherein the second error signal is a voltage or a digital signal.
 31. The electrical circuit power supply of claim 20, wherein the second difference is a voltage.
 32. The electrical circuit power supply of claim 20, wherein the second difference is a digital signal.
 33. The electrical circuit power supply of claim 20, wherein the control signal frequency bandwidth of the second control signal is less than the fundamental frequency.
 34. The electrical circuit power supply of claim 20, wherein the control signal frequency bandwidth is greater than the fundamental frequency.
 35. The electrical circuit power supply of claim 29, wherein the second error frequency bandwidth of the second error signal is greater than the first error frequency bandwidth of the first error signal.
 36. The electrical circuit power supply of claim 29, wherein a maximum magnitude of the second error signal is less than a maximum magnitude of the first error signal.
 37. An electrical circuit power supply with power factor correction, the electrical circuit power supply comprising: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an output voltage or an output current, and to minimize noise and ripple of an input current from a DC voltage source; a means for measuring one of the output voltage or the output current and comparing one of the output voltage or the output current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the output voltage or the output current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the input current and generating a current measurement signal from the input current; a means for generating a second reference signal, the second DC reference signal, and generating a second difference by subtracting the second reference signal from the current measurement signal; and a means for generating a second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal being used to control one of a gain or a magnitude of the current measurement signal in order to minimize the second difference.
 38. The electrical circuit power supply of claim 37, further comprising: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.
 39. The electrical circuit power supply of claim 37, wherein at least one of: the first control signal, the first reference signal, the first error signal, the current measurement signal, the second reference signal are a digital signal.
 40. An electrical circuit power supply with power factor correction, the electrical circuit power supply comprising: a switch-mode converter; a means for controlling the switch-mode converter with a first control signal in order to control currents in the switch-mode converter in order to control and regulate one of an output voltage or an output current, to minimize noise and ripple of an input current, the input current being received from a DC voltage source; a means for measuring one of the output voltage or the output current and comparing one of the output voltage or the output current to a first reference signal, and generating a first error signal responsive to a first difference between the first reference signal and one of the output voltage or the output current, the first error signal having a first error frequency bandwidth; a current measurement means for measuring the DC input current and generating a current measurement signal from the DC input current; a means for generating a second reference signal comprising of a DC current reference signal proportionately reduced from an input voltage by a means of a controlled voltage divider responsive to a second control signal; a first means for controlling a magnitude of a reduction of the input voltage and generating a second difference by subtracting the DC reference signal from the current measurement signal; and a means for generating the second control signal that is proportional to the second difference, the second control signal having a control signal frequency bandwidth, the second control signal driving the first means in order to minimize the second difference.
 41. The electrical circuit power supply of claim 40, further comprising: a means for generating a second error signal that is proportional to the second difference, the second error signal having a second error frequency bandwidth; and a means for combining the second error signal with the first error signal to generate the first control signal.
 42. The electrical circuit power supply of claim 40, wherein at least one of: signals are a digital signal. 